finding nth roots of complex numbers